package com.jwetherell.quick_response_code;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

public class FacebookActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_facebook);
        
        WebView myWebView = (WebView) findViewById(R.id.facebook_web);
        Intent myIntent= getIntent();
        myWebView.loadUrl(myIntent.getStringExtra("url"));
        
        Button b = (Button) findViewById(R.id.facebook_back);
        b.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
			
				Intent intent = new Intent(FacebookActivity.this,CaptureActivity.class);
				startActivity(intent);
			}
		});
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_facebook, menu);
        return true;
    }
}
